import java.util.Scanner;

public class Work04 {
    static void  test(){
        String s = "13:05:42 103";
        int i = s.indexOf(" ");
        String substring = s.substring(i + 1);
        System.out.println(substring);
    }

    static void func(String[] arr){
        for (String s:arr) {

        }
    }
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        String[] strings = new String[n];
        for (int i = 0; i < n; i++) {
            strings[i] = scanner.nextLine();
        }
        test();
    }
}
